
#ifndef DefineHeader_h
#define DefineHeader_h

#define SCREEN_WIDTH ([UIScreen mainScreen].bounds.size.width)
#define SCREEN_HEIGHT ([UIScreen mainScreen].bounds.size.height)
#define Size(n) (float) n/375*SCREEN_WIDTH

#define isIphoneX [UIApplication sharedApplication].statusBarFrame.size.height >= 44 ? 1:0



#if DEBUG
#define NSLog(FORMAT, ...) fprintf(stderr,"\nfunction:%s line:%d content:%s\n", __FUNCTION__, __LINE__, [[NSString stringWithFormat:FORMAT, ##__VA_ARGS__] UTF8String]);
#else
#define NSLog(FORMAT, ...) nil
#endif

#define WeakSelf(ClassObject)   __weak typeof(&*ClassObject) weakSelf = ClassObject;

#define kLanguage(key) [[FAMLanguageManager shareInstance] FAM_getKey:key]

#endif
